package com.app.example.action;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.pi.fssm.base.web.action.BaseAction;

/**
 * Description: TestAction.java Create on 2013-4-19 下午11:00:42
 * 
 * @author held
 * @version 1.0 Copyright (c) 2013 held,Inc. All Rights Reserved.
 */
@ParentPackage("base")
@Controller("testAction")
@Scope("prototype")
public class TestAction extends BaseAction {

	Log log=LogFactory.getLog(TestAction.class);
	private String test_succee;
	
	private static final long serialVersionUID = -6828708882186714669L;

	@Action(value = "testStruts", results = { 
			@Result(name = "success", type = "freemarker", location = "example/test_succee.html") })
	public String testStruts() {
		
		log.info("into testStruts~");
		
		test_succee="action test  succee!";
		
		return SUCCESS;
	}

	public String getTest_succee() {
		return test_succee;
	}

	public void setTest_succee(String test_succee) {
		this.test_succee = test_succee;
	}
	
	
}
